package com.young.manager.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.young.common.model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;

@Getter
@Setter
@TableName("sys_user")
public class SysUser extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private   Long id;
    private String account;
    private String password;
    private String salt;
    private String name;
    private String phone;
    private String email;
    private Date lastLogin;
    private Integer status;
    private Integer superUser;
    @TableField(exist = false)
    private Long[] roleIds;
}
